package com.huawang.mdesign.model.service.constant;

import com.huawang.core.definition.mof.UMLDefinitionConstants;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @author cdl
 */
@AllArgsConstructor
@Getter
public enum ClassTypeEnum {

    DATA_TYPE(UMLDefinitionConstants.DataType, UMLDefinitionConstants.DataType_ownedAttribute),
    CLASS(UMLDefinitionConstants.Class, UMLDefinitionConstants.Class_ownedAttribute);

    private final String key;

    private final String value;

    public static boolean dataType(String key) {
        return Objects.equals(DATA_TYPE.key, key);
    }
}
